alert
This function displays a message box on the user's screen with a title and text.
bool alert(string title, string text)
Parameters:
title
The title of the window.
text
The text that is to be shown.
Return value:
true on success, false on failure.
Remarks:
This function is useful for displaying information to the user such as error messages and other important alerts. The script execution will pause until the user clicks on the OK button.
Example:
void main()
{
alert("Information", "Did you know that I am an alert box? No? Well, now you do!");
}